/**
 * Coryright 2015-2020 www.eyaomall.cn
 * All rights reserved.
 * @author tumingjun
 * @date 2016年9月20日
 *
 */

package com.eyaomall.wxmanage.dao;

import org.springframework.stereotype.Repository;

import com.eyaomall.wxmanage.model.po.Invoice;
import com.eyaomall.wxmanage.model.vo.InvoiceVO;
import com.lycheeframework.core.annotation.NameSpace;
import com.lycheeframework.core.cmp.kit.PageHTTPObject;
import com.lycheeframework.core.cmp.kit.Pages;
import com.lycheeframework.core.support.DaoSupport;

/**
 * @author tumingjun
 *
 */
@Repository
@NameSpace("invoice")
public class InvoiceDao extends DaoSupport<Invoice>{
	
	/**
	 * 分页查询
	 * @param invoice
	 * @param httpObject
	 * @return
	 */
	public Pages<?> page(InvoiceVO invoiceVO,PageHTTPObject httpObject){
		
		return super.page(invoiceVO, httpObject);
	}
	
	/**
	 * 修改发票状态
	 * @param invoice
	 * @return
	 */
	public boolean update(Invoice invoice){
		
		return super.update(invoice) > 0 ? true : false;
	}

}
